<?php
    
    include_once '../clases/entregaTurno.php';
    
    $tc = $_REQUEST['tc'];
    
    if($tc == 1){
        
        $entrega = utf8_decode($_REQUEST['ent']);
        $recibe = utf8_decode($_REQUEST['rec']);
        $observacion = utf8_decode($_REQUEST['obs']);
        $servicio = $_REQUEST['ser'];
        
        $datos = new entregaTurno($observacion, $entrega, $recibe, $servicio, "", "");
        $datos->InsertarEntrega();
    }
    else if($tc == 2){
        
        $servicio = $_REQUEST['ser'];
        
        $datos = new entregaTurno("", "", "", $servicio, "", "");
        $datos->datosET();
    }
?>
